const express = require('express');
const router = express.Router();
const expressJoi = require('@escook/express-joi');
const forgot_handle = require('../router_handler/forgot');
const { getSecurityQuestion_schema, resetPassword_schema } = require('../schema/forgot');

router.post('/get-question', expressJoi(getSecurityQuestion_schema), forgot_handle.getSecurityQuestion);
router.post('/reset', expressJoi(resetPassword_schema), forgot_handle.resetPassword);

module.exports = router;